<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>测试</title>
    <script language="javascript">
    function checkLoginType(){
    	document.loginForm.action = "<%=basePath%>servlet/Test";
    }
    </script>
  </head>
  <body>
  <form name="loginForm" method="post" action="" onSubmit="return checkLoginType();">
    <table width="300" height="130" align="center" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" height="30">
        <input width="60"  type="submit" name="enter" value="查看">
        </td>
      </tr>
    </table>
    <p></p>
  </body>
</html>
